﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SArenaPlayerInfos extends IMessageBase
    {
        public var sendToCenter:Boolean;
        public var lvLimit:int;
        public var zoneBTopLv:int;
        public var openDays:int;
        public var copyCode:int;
        public var arenaPlayers:Array;
        public const _type:int = 7010;
        public static var _regist:SArenaPlayerInfos = new SArenaPlayerInfos(true);

        public function SArenaPlayerInfos(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SArenaPlayerInfos();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeBool(this.sendToCenter);
            param1.writeInt(this.lvLimit);
            param1.writeInt(this.zoneBTopLv);
            param1.writeInt(this.openDays);
            param1.writeInt(this.copyCode);
            SeqSArenaPlayerInfoHelper.write(param1, this.arenaPlayers);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.sendToCenter = param1.readBool();
            this.lvLimit = param1.readInt();
            this.zoneBTopLv = param1.readInt();
            this.openDays = param1.readInt();
            this.copyCode = param1.readInt();
            this.arenaPlayers = SeqSArenaPlayerInfoHelper.read(param1);
            return;
        }// end function

    }
}
